cmake_minimum_required(VERSION 3.20)
project(db C)

set(CMAKE_C_STANDARD 11)

include_directories(include)
include_directories(include/mysql)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -L E:/clearn/db/lib -lmysqlclient")
add_executable(db
        include/mysql/client_plugin.h
        include/mysql/plugin_auth_common.h
        include/mysql/udf_registration_types.h
        include/openssl/applink.c
        include/errmsg.h
        include/field_types.h
        include/my_command.h
        include/my_compress.h
        include/my_list.h
        include/mysql.h
        include/mysql_com.h
        include/mysql_time.h
        include/mysql_version.h
        include/mysqld_error.h
        include/mysqlx_ername.h
        include/mysqlx_error.h
        include/mysqlx_version.h
        main.c)
